<table id="table_list" class="data" width="70%">
  <thead>
    <tr>
      <th class="name first" colspan="2">
        <div class="dividers">
          <a href="">餐桌类型</a>
        </div>
      </th>
      <th>
        <div class="dividers">
          <a href="">餐桌号</a>
        </div>
      </th>
      <th>
        <div class="dividers">
          <a href="">就餐者</a>
        </div>
      </th>
      <th class="block_status last" colspan="2">操作</th>
    </tr>
  </thead>
  <tbody>
    <%tables.each do |table|%>
     <%=render :partial=>'tables/table_item',:locals=>{:table=>table}%>
     <tr id="edit_place_<%=table.id%>" style="display:none"/>
    <%end%>
  </tbody>
</table>
<br/>
<div style="float:right">
  <%= will_paginate @tables,
    :renderer => 'RemoteLinkRenderer',
    :inner_window => 1,
    :outer_window => 1,
    :prev_label => '上一页',
    :next_label => '下一页'
  %>
</div>